﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Hero
    {
        public string heroname;
        public string nickname;
        public string heroinfo;
        public int attack;
        public int defense;
        public int speed;

        public Hero()
        { 
        }
        public Hero(string heroname, string nickname, string heroinfo, int attack, int defense, int speed) 
        {
            this.heroname = heroname;
            this.nickname = nickname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
        }
        public void SayHi()
        {
            Console.WriteLine("英雄"+"\n"+"名称:{0}"+"\n"+"昵称:{1}"+"\n"
                + "简介:{2}"+"\n"+"攻击:{3}"+"\n"+"防御:{4}"+"\n"+"速度:{5}"
                ,this.heroname,this.nickname,this.heroinfo,this.attack,this.defense,this.speed);
        }
        public string Heroname
        {
            get { return this.heroname; }
            set { this.heroname = value; }
        }
        public string Nickname
        {
            get { return this.nickname; }
            set { this.nickname = value; }
        }
        public string Heroinfo
        {
            get { return this.heroinfo; }
            set { this.heroinfo = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
    }
}
